package com.xy.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/4/8 18:34
 * @description
 */

@Component
public class Cat implements InitializingBean, DisposableBean {
    public Cat() {
        System.out.println("cat Constructor");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("cat destroy...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("cat afterPropertiesSet...");

    }
}
